package com.xmall.order.service.other;

import com.xmall.order.define.dto.OrderItemDto;

import java.math.BigDecimal;
import java.util.List;

public interface IAmountCalculateService {

    /**
     * 计算商品总金额
     */
    BigDecimal calculateProductAmount(List<OrderItemDto> list);

    /**
     * 计算优惠金额
     */
    BigDecimal calculateDiscountAmount();

    /**
     * 计算运费金额
     */
    BigDecimal calculateDeliveryAmount();
}
